LayerViewModel.setTemplate Method

Set the template grid. If the new template does not have cell that correspond to adapter, adapter will be removed.